import React from 'react';
import { Layout } from 'antd';
import classNames from 'classnames';

import IcpFooter from '@/components/Footer/IcpFooter';

import styles from './index.less';

const { Footer: BasicFooter } = Layout;

interface FooterProps {
  className?: string;
  siteProfile: any;
}

const Footer: React.FC<FooterProps> = ({ children, className, siteProfile, ...rest }) => (
  <BasicFooter className={classNames(styles.footer, className)} {...rest}>
    {children}
    <IcpFooter  siteProfile={siteProfile}/>
  </BasicFooter>
);

Footer.displayName = 'footer';

export default Footer;
